import { closeConnection, commitTransaciton, rollbackTransaction, beginTransction } from "../transactionCount";


export class transactionAdvice {

    async begin() {
        await beginTransction()
    }

    async after() {
        await commitTransaciton()
        await closeConnection()
    }

    async afterThrow() {
        await rollbackTransaction()
        await closeConnection()
    }

}